module.exports = {
    css: {
        loaderOptions: {
            scss: {
                prependData: `@import '@/styles/init.scss';`
            }   
        }
    },
    productionSourceMap: false,
    pluginOptions: {
        electronBuilder: {
        nodeIntegration: true,
        builderOptions: {
            appId: '9pj8d58p',
            productName: '陆军军事交通学院教学互动系统',
            publish: {
                provider: 'generic',
                url: process.env.VUE_APP_HOST+'version'
            },
            win: {
                icon: "icon/icon.ico",
                artifactName: "${productName}_setup_${version}.${ext}"
            },   
            asar: false,
            nsis: {
                oneClick: false,
                // 允许修改安装目录
                allowToChangeInstallationDirectory: true, 
                allowElevation: true,
                createDesktopShortcut: true,
                createStartMenuShortcut: true,
                shortcutName: '陆军军事交通学院教学互动系统'
            }
        }
        },
        configureWebpack: {
            resolve: {
                symlinks: true
            }
        }
    }
    
};